<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>武理天协</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f0f0f0;
        }
        .header, .footer {
            background-color: #202040;
            color: white;
            padding: 10px 20px;
            text-align: center;
        }
        .container_a {
    padding: 20px;
    margin: 15px;
}
.container_b{
    padding: 20px;
    margin: 15px;
}
.container_c{
    padding: 20px;
    margin: 15px;
}
.news-item_a {
    display: block;
    background-color: white;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none; /* Remove underline from links */
    color: #f0f0f0; /* Standard text color for content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background-image: url(./images/7.jpg);
    background-size: cover;
}
.news-item_a:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.news-item_b {
    display: block;
    background-color: white;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none; /* Remove underline from links */
    color:#f0f0f0; /* Standard text color for content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background-image: url(./images/7.jpg);
    background-size: cover;
}
.news-item_b:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.news-item_c {
    display: block;
    background-color: white;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none; /* Remove underline from links */
    color:#f0f0f0; /* Standard text color for content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background-image: url(./images/7.jpg);
    background-size: cover;
}
.news-item_c:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.image_a{
    display: none;
    background-color: none;
    width: 260px;
    height: 420px;
    background-image: url("./images/6.jpg");
    background-repeat: no-repeat;
    background-size: 100%;
    position: absolute;
    right: 0px;
    top: 0px;
}
.news-item_a:hover>.image_a{
    display: block;
}
.image_b{
    display: none;
    background-color: none;
    width: 275px;
    height: 900px;
    background-image: url("./images/8.webp");
    background-repeat: no-repeat;
    background-size: 100%;
    position: absolute;
    right: 0px;
    top: 0px;
}
.news-item_b:hover>.image_b{
    display: block;
    object-fit: contain;
}
.image_c{
    display: none;
    background-color: none;
    width: 320px;
    height: 420px;
    background-image: url("./images/4.jpeg");
    background-repeat: no-repeat;
    background-size: 100%;
    position: absolute;
    right: 0px;
    top: 0px;
}
.news-item_c:hover>.image_c{
    display: block;
    object-fit: contain;
}
        .news-item {
            display: block;
            background-color: white;
            margin-bottom: 20px;
            padding: 20px;
            border: 2px solid #ccc;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            text-decoration: none;
            color:#f0f0f0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            background-image: url(./images/7.jpg);
            background-size: cover;
        }
        .news-item:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        }
        .news-date {
            color: #666;
            font-size: 0.9em;
        }
        .nav-bar {
            background-color: #303060;
            padding: 10px 0;
            text-align: center;
            font-size: 36px; /* 导航字体比标题小一号 */
        }
        .nav-bar a {
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            transition: background-color 0.3s ease-in-out;
        }
        .nav-bar a:hover {
            background-color: #505080;
        }
    </style>
</head>
<body>
    <div class="header">
    <h1>最新天文消息</h1>
    </div>
    <div class="nav-bar">
        <a href="./首页.html">网站首页</a>
        <a href="./history.html">协会历史</a>
        <a href="./astronomy.html">天文科普</a>
        <a href="./links.html">链接天文</a>
        <a href="./events.html">活动预告</a>
    </div>
    <div class="container_a">
        <a href="#" class="news-item_a">
            <h2>星空观测夜</h2>
            <p class="news-date">2024年5月10日</p>
            <p>我们在本月10日举行了一次星空观测夜，活动吸引了超过100名学生和教师参加。</p>
            <div class="image_a">
            </div>
        </a>
    </div>
    <div class="container_b">
        <a href="#" class="news-item_b">
            <h2>讲座：银河系的构造</h2>
            <p class="news-date">2024年4月25日</p>
            <p>著名天文学家王教授在我校进行了关于银河系构造的精彩讲座。</p>
            <div class="image_b">
            </div>
        </a>
    </div>
    <div class="container_c">
        <a href="#" class="news-item_c">
            <h2>新会员欢迎会</h2>
            <p class="news-date">2024年3月15日</p>
            <p>我们欢迎了30名新会员加入我们的天文协会。活动中，新老会员共同参与了交流会，共同讨论了未来的活动计划和目标。</p>
            <div class="image_c">
            </div>
        </a>
    </div>

    <div class="footer">
        <p>联系我们: email@example.com</p>
    </div>
</body>
</html>
